home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / program / tsetguid.zip / TEA / SET / SAMPLE / CARDCAL.JAV < prev    next >
Text File  |  1997-02-27  |  2KB  |  58 lines

  1. /*
  2.  * Copyright (c) 1996-1997, InetSoft Technology Corp, All Rights Reserved.
  3.  *
  4.  * The software and information contained herein are copyrighted and 
  5.  * proprietary to InetSoft Technology Corp. This software is furnished 
  6.  * pursuant to a written license agreement and may be used, copied, 
  7.  * transmitted, and stored only in accordance with the terms of such 
  8.  * license and with the inclusion of the above copyright notice. Please 
  9.  * refer to the file "COPYRIGHT" for further copyright and licensing 
  10.  * information. This software and information or any other copies 
  11.  * thereof may not be provided or otherwise made available to any 
  12.  * other person. 
  13.  */
  14. package tea.set.sample;
  15.  
  16. import java.applet.*;
  17. import java.awt.*;
  18. import tea.set.*;
  19.  
  20. /**
  21.  * This is a demo applet to show using tea.set.CardFile to build a 
  22.  * simple calendar.
  23.  *
  24.  * @see CardFile
  25.  * @see Folder
  26.  * @see YearCal
  27.  * @see MCalendar
  28.  * @version 1.3, 01/31/97
  29.  * @author InetSoft Technology Corp
  30.  */
  31. public class CardCal extends Applet {
  32.    public void init() {
  33.       setLayout(new BorderLayout());
  34.       
  35.       folder = new CardFile(CardFile.LEFT_RIGHT);
  36.       folder.setBorder(new Insets(4, 4, 4, 4));
  37.       
  38.       YearCal cal; 
  39.       
  40.       cal = new YearCal(96, 0, 96, 2, 3, 1);
  41.       folder.add("1st Quarter", new Effect3D(cal, Effect3D.RAISED_BORDER));
  42.       
  43.       cal = new YearCal(96, 3, 96, 5, 3, 1);
  44.       folder.add("2nd Quarter", new Effect3D(cal, Effect3D.RAISED_BORDER));
  45.       
  46.       cal = new YearCal(96, 6, 96, 8, 3, 1);
  47.       folder.add("3rd Quarter", new Effect3D(cal, Effect3D.RAISED_BORDER));
  48.       
  49.       cal = new YearCal(96, 9, 96, 11, 3, 1);
  50.       folder.add("4th Quarter", new Effect3D(cal, Effect3D.RAISED_BORDER));
  51.       
  52.       folder.flush();
  53.       add("Center", folder);
  54.    }
  55.    
  56.    private CardFile folder;
  57. }
  58.